import axios from 'axios'

const instance = axios.create({
  baseURL: "/yhzx"
})

instance.interceptors.request.use((config) => {
  return config
}, (err) => {
  return Promise.inject(err)
})

instance.interceptors.response.use((response) => {
  return response.data.data
}, (error) => {
  return Promise.inject(error)
})


export default instance